package com.jdk.demo.list.arraylist;

import java.util.ArrayList;
import java.util.List;

public class Demo {

	public static void main(String[] args) {
		List<String> list = new ArrayList<>(2);
		list.add("zz");
		list.add("ss");
		list.add("cc");
		list.add(2, "rr");

		//list.remove(1);
		//list.remove("rr");

		list.set(2, "sss123");

		List<String> list2 = new ArrayList<>(list);
	}

}
